package cn.ekuma.data.dao.util;

import com.openbravo.data.loader.KeyBuilder;

import cn.ekuma.data.dao.I_ParentNode;
import cn.ekuma.data.dao.bean.IKeyed;

public class DAOUtils {
	public static I_ParentNode getParentNode(final Class parentClass,final String id){
		return new I_ParentNode(){

			@Override
			public IKeyed getParentKey() {
				return KeyBuilder.getKey(id);
			}

			@Override
			public Class getParentClass() {
				return parentClass;
			}
		};
	}
}
